.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

@theme-color: #55B761;
@font-color: #505050;
@small-font: 1.2rem;
@font-family: 'Comic Sans MS';
// 封装第2、3部分绿色按钮

.button-style {
    padding: 0.4rem 1.5rem;
    color: white;
    font-size: @small-font;
    border-radius: 5px;
    background-color: @theme-color;
}

// 主体内容每个部分的标题
.title {
    font-size: 2.2rem;
    color: @font-color;
    font-weight: bold;
}

/* 导航栏部分 */
header {
    width: 100%;
    border-bottom: 1px solid rgb(231, 231, 231);
    background-color: white;
    z-index: 10;

    .navbar {
        .navbar-nav {
            margin: 0px auto;

            .nav-link {
                color: @font-color;
                font-size: @small-font;

                @media (min-width:992px) and (max-width:1200px) {
                    font-size: 1rem;
                }

                &:hover {
                    color: @theme-color;
                }

                &.active {
                    color: @theme-color;
                }
            }

        }

        .btn-signUp,
        .btn-logIn {
            @media (min-width:992px) and (max-width:1200px) {
                font-size: 0.8rem;
                padding: 0px 8px;
                border-width: 1px;
            }

            border-width: 2px;
            line-height: 30px;
            padding: 0px 20px;
        }

        .btn-signUp {
            color: @font-color;
            border-color: @font-color;

            &:hover {
                border-color: @theme-color;
                color: white;
                background-color: @theme-color;
            }
        }

        .btn-logIn {
            border-color: @theme-color;

            &:hover {
                background-color: @theme-color;
            }
        }
    }

}

/* 主体；time tracking部分 */
#con-time-tracking {

    .top {
        padding: 178px 0px 174px;

        .title {
            .title();
            line-height: 44px;
            letter-spacing: 0.051rem;
        }

        .explain {
            font-size: @small-font;
            margin: 54px 0px;
        }

        .email-wrap {
            padding: 2px;
            border: 1px solid #D3EBD3;
            border-radius: 4px;

            .iconfont {
                display: flex;
                justify-content: center;
                align-items: center;
                color: @theme-color;
            }

            input {
                height: 1.5rem;
            }

            .try-free {
                padding: 0.8rem 0;
                margin: 0;
                color: white;
                background-color: @theme-color;
                border-radius: 4px;
                cursor: pointer;
            }
        }
    }

    .bottom {
        .text p {
            margin: 0 auto;
        }



        div {
            height: 3.5rem;
            display: flex;
            align-items: center;
        }

        img {
            width: 100%;
        }

        @media (max-width:992px) {
            .pic-cap img {
                margin: 0 auto;
                width: 35%;
            }

            img {
                width: 66%;
            }
        }

        @media (max-width:576px) {
            img {
                width: 70%;
            }
        }
    }
}

#con-withCamp {
    padding: 12rem 0 25rem;
    background: url('../images/bg.jpg') no-repeat center/cover;

    h3 {
        font-size: 2.5rem;
    }

    p {
        font-size: @small-font;
    }

    @media (max-width : 767px) {
        h3 {
            color: #aeaeae;
        }
    }

    button {
        border: 2px solid @theme-color;
        border-radius: 10px;
    }

    .readMore {
        background-color: @theme-color;

        &:hover {
            background-color: rgb(24, 158, 6);
        }
    }

    .signUp {
        &:hover {
            background-color: @theme-color;
        }
    }
}


#con-ranked {
    padding: 7rem 0;

    .left {
        h3 {
            .title();
        }

        p {
            font-size: @small-font;
        }
    }
}


#con-use {
    padding-bottom: 16rem;

    @media (max-width:992px) {
        padding-bottom: 9rem;
    }

    .person {
        position: relative;

        // 封装图片位置函数
        .imgChange(@t, @r) {
            top: @t;
            right: @r;
        }

        img {
            position: absolute;
            width: 30%;

            @media (max-width:992px) {
                width: 35%;
            }

        }

        .img1 {
            .imgChange(106%, 1%);

            @media (max-width:992px) {
                .imgChange(86%, 1%);
            }
        }

        .img2 {
            .imgChange(0%, 0%);
        }

        .img3 {
            .imgChange(46%, 37%);
        }

        .img4 {
            .imgChange(6%, 73%);
        }

        .img5 {
            .imgChange(100%, 60%);

            @media (max-width:992px) {
                .imgChange(86%, 60%);
            }
        }
    }

    .text {
        h3 {
            .title();
        }

        p {
            font-size: @small-font;
        }

        a {
            .button-style();
        }
    }
}

// 人物介绍模块
.medias {
    width: 60%;
    background-color: #F3F4F3;

    @media (max-width:992px) {
        width: 85%;
    }

    @media (max-width:768px) {
        width: 100%;
    }

    p {
        font-size: 0.8rem;
        color: @theme-color;
    }

    h5 {
        font-size: 1.2rem;
    }
}

#con-time-software {
    background-color: #65688B;
    transform: skewY(-8deg);
    padding-top: 10rem;
    padding-bottom: 6rem;

    .container {
        transform: skewY(8deg);

        .text {
            color: white;

            p {
                margin: 2.5rem 0;
            }

            a {
                .button-style();
            }

            .img-card {
                margin-top: 22rem;
                padding-bottom: 15.5rem;

                @media (min-width:1200px) {
                    padding-bottom: 13rem;
                }

                color:@font-color;

                h5 {
                    font-size: 2rem;
                }

                p {
                    margin: 1rem 0;
                }

                div {
                    img {
                        width: 100%;
                        margin: 0 0.2rem 1rem 0;
                    }

                }
            }
        }

        .card-left {
            .txt-card {
                @media (max-width:768px) {
                    &:nth-of-type(1) {
                        margin-top: 4rem;
                    }
                }
            }
        }

        .txt-card {
            width: 100%;
            height: 15rem;
            margin: 0 2rem 2.5rem 0;

            @media (max-width:992px) {
                height: 19rem;
            }

            @media (max-width:768px) {
                height: 12rem;
            }

            @media (max-width:576px) {
                height: 14rem;
            }


            .new {
                position: relative;

                &::after {
                    position: absolute;
                    width: 20%;
                    top: 0.5rem;
                    right: 0.8rem;
                    content: 'NEW!';
                    text-align: center;
                    font-weight: bold;
                    line-height: 2rem;
                    color: white;
                    background-color: @theme-color;

                    @media (max-width:992px) {
                        width: 30%;
                    }

                    @media (max-width:768px) {
                        top: -1rem;
                        width: 15%;
                    }
                }
            }

            h5 {
                font-size: 1.1rem;
                color: @font-color;
                letter-spacing: 2px;
                padding: 1.5rem 0;

                &::before {
                    content: '';
                    display: inline-block;
                    width: 1rem;
                    height: 1rem;
                    margin-right: 1rem;
                    background: url('../images/star.png') no-repeat center/cover;
                }
            }

            p {
                font-size: 0.9rem;
                line-height: 1.2rem;
            }
        }
    }
}

#con-great-tool,
#con-I-finally {
    margin-top: 13rem;
    margin-bottom: 10rem;

    @media (max-width:768px) {
        margin-top: 6rem;
        margin-bottom: 6rem;
    }

    h5 {
        .title();
        font-size: 1.8rem;
    }

    .media {
        .medias();
    }
}

#con-you-cannot {
    margin-bottom: 7rem;

    h5 {
        .title();
        font-size: 1.8rem;
    }

    .media {
        .medias();
    }
}

#con-know-your {
    background-color: #65688B;
    transform: skewY(-8deg);
    padding: 6rem 0;

    div {
        width: 50%;

        @media (max-width:992px) {
            width: 70%;
        }

        @media (max-width:768px) {
            width: 90%;
        }

        margin:0 auto;
        transform: skewY(8deg);
        color:white;
        text-align: center;

        h5 {
            font-family: @font-family;
            font-size: 1.8rem;
            letter-spacing: 2px;
        }

        p {
            font-size: 1.2rem;
        }

        a {
            .button-style();
        }
    }

}

#con-the-proof {
    text-align: center;

    h5 {
        font-family: @font-family;
        font-size: 2rem;
        letter-spacing: 2px;
        color: @font-color;
    }

    div {
        padding: 1rem 0.6rem;

        .wrap {
            padding: 1.8rem;
            margin: 1rem auto;
            width: 75%;
            background-image: linear-gradient(to bottom, #f9fbfa 0%, #eeefee 100%);

            img {
                filter: brightness(0);
            }
        }

        .number {
            font-size: 1.5rem;
            color: @theme-color;
        }

        .txt {
            font-size: 1.2rem;
        }
    }
}

#rewards {
    margin: 6rem auto 14rem;
    text-align: center;

    @media (max-width:768px) {
        margin-bottom: 8rem;
    }

    h5 {
        font-family: @font-family;
        font-size: 2rem;
    }

    p {
        font-size: 1.2rem;
        margin: 2rem 0;
    }

    .row {
        div {
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                width: 80%;

                @media (max-width: 992px) {
                    width: 100%;
                }
            }
        }
    }
}


#con-all-of {
    margin-bottom: 10rem;

    .left {
        h5 {
            font-family: 'Comic Sans MS';
            font-size: 2rem;
            font-weight: bold;
            color: #333333;
        }

        .form-inline {
            input {
                width: 60%;
                border: 2px solid #D9D9D9;
                height: 2.7rem;
            }

            button {
                .button-style();
                // padding: 0.2rem 3rem;
                margin-left: 0.5rem;
                width: 38%;
            }
        }
    }

    @media (max-width:992px) {
        margin-bottom: 8rem;

        .left {
            .form-inline {
                input {
                    width: 55%;
                    // @media (max-width:992px) {
                    // }
                }
            }
        }
    }
}

footer {

    // 字体样式
    .letterfont {
        color: rgb(238, 238, 238);
        text-decoration: none;
        font-weight: lighter;
        font-size: 0.8rem;
    }


    .skew-bg {
        height: 550px;
        transform: skewY(-16deg);
        background-color: #65688B;
        position: relative;
        z-index: 0;
        margin-top: 6rem;
    }



    .bg {
        margin-top: -20rem;
        background-color: #65688B;
        position: relative;
        z-index: 1;

        .top {
            p {
                color: white;
                font-weight: 600;
            }

            li {
                line-height: 1.5rem;

                a {
                    .letterfont();
                }
            }
        }



        i {
            width: 100%;
            height: 4px;
            background-color: #8386A2;
        }

        .middle {
            li {
                a {
                    color: white;
                }
            }
        }

        .bottom {
            margin-top: 6rem;

            li {
                .letterfont();

                a {
                    color: @theme-color;
                }

                .btn {
                    color: rgb(44, 44, 44);
                    background-color: white;
                    padding: 0.1rem 0.3rem;
                }
            }
        }
    }

    .server {
        display: flex;
        width: 4rem;
        height: 4rem;
        right: 10px;
        bottom: 12px;
        background-color: white;
        z-index: 20;
        justify-content: center;
        align-items: center;
        cursor: pointer;

        p {
            margin-bottom: 0;
            width: 2.5rem;
            height: 2.5rem;
            text-align: center;
            background: url('../images/客服.png') no-repeat center/cover;

            span {
                margin-top: 1rem;
                width: 0.3rem;
                height: 0.3rem;
                background-color: white;
                display: none;
                // display: inline-block;
                transition: 1s;
                position: relative;

            }

            @keyframes dump {
                0% {
                    top: 0;
                }

                50% {
                    top: -0.5rem;
                }

                100% {
                    top: 0;
                }
            }

            &:hover {
                background: url('../images/信息.png') no-repeat center/cover;
                transition: all 0.3s;

                span {
                    display: inline-block;

                    &.circle1 {
                        animation: dump 0.7s;
                    }

                    &.circle2 {
                        animation: dump 0.7s 0.1s;
                    }

                    &.circle3 {
                        animation: dump 0.7s 0.1s;
                    }
                }
            }
        }
    }

    .dialog {
        right: 15px;
        bottom: 12px;
        width: 310px;
        height: 95vh;
        background-color: white;
        border-radius: 10px;
        z-index: 30;
        display: none;

        .header {
            box-shadow: 0px 3px 10px -5px rgba(0, 0, 0, 0.363);

            .top {
                line-height: 3rem;
                padding: 0 0.8rem 1rem;
                border-bottom: 1px solid rgb(231, 231, 231);

                .left {
                    cursor: pointer;

                    &>i {
                        display: inline-block;
                        width: 5px;
                        height: 5px;
                        border-radius: 50%;
                        background-color: @font-color;
                    }
                }


                .closes {
                    display: block;
                    width: 20px;
                    height: 20px;
                    cursor: pointer;

                    i {
                        margin-top: 10px;
                        display: block;
                        width: 100%;
                        height: 2px;
                        background-color: @font-color;
                    }
                }
            }

            .bot {
                .iconfont {
                    font-size: 1.5rem;
                    color: #bebebe;
                    cursor: pointer;

                    &.zan {
                        font-size: 1.9rem;
                        position: relative;
                        top: 4px;
                    }
                }
            }

        }

        .middle-con {
            width: 100%;
            height: 66%;
            background-color: #E9EEF4;
            overflow: auto;

            li {
                margin-bottom: 1rem;
            }

            .head {
                width: 20px;
                height: 20px;
                border-radius: 50%;
                margin-right: 0.5rem;
                background: url('../images/server.jfif') no-repeat center/cover;

            }

            .media-body {
                span {
                    font-weight: lighter;
                    font-size: 1rem;
                }

                p {
                    line-height: 18px;
                    border-radius: 10px;
                    padding: 12px 9px;
                    color: #6b6b6b;
                }
            }

            .you {

                .tip,
                .active {
                    font-weight: lighter;
                    font-size: 0.8rem;
                }

                .content {
                    display: inline-block;
                    margin-left: auto;
                    padding: 11px;
                    line-height: 22px;
                    border-radius: 10px;
                    color: white;
                    background-color: #4384F5;
                    word-break: break-all;
                }

                @keyframes show {
                    0% {
                        opacity: 0;
                    }

                    100% {
                        opacity: 1;
                    }
                }

                .active {
                    opacity: 0;
                    animation: show 0.5s 1s forwards;
                }

            }
        }

        .bottom {
            input {
                width: 90%;
                outline: none;
            }

            svg {
                transform: scale(1.5);
                cursor: pointer;
            }
        }
    }


    @media (min-width:1200px) {
        .bg {
            margin-top: -17rem;
        }
    }

    @media (max-width:768px) {
        .bg {
            margin-top: -23rem;
        }
    }

    @media (max-width:576px) {
        .skew-bg {
            display: none;
        }

        .bg {
            margin-top: 0rem;
            padding-top: 3rem;

            .top {
                p {
                    font-size: 1.5rem;
                }
            }

            .middle {
                li {
                    line-height: 2.5rem;

                    a {
                        font-size: 1.5rem;
                    }
                }
            }

            .bottom {
                width: 70%;
                margin: 3rem auto 0;

                li {
                    margin-bottom: 2rem;
                    padding-bottom: 0;
                }
            }
        }

    }
}